package cn.cy.behavior.observer.event.normal;

/**
 * @author yangxq
 * @desc 具体监听器
 * @date 2025-05-07
 */
public class ConcreteEventListener implements EventListener {

    private String name;

    public ConcreteEventListener(String name) {
        this.name = name;
    }

    public void onEvent(Event event) {
        System.out.println(name + " received event: " + event.getMessage());
    }

}
